// JavaScript Document


	var XmlLoader = function(){

		this.loadXml = function( url, onComplete )
		{
			var xmlDoc;
			var xmlloaded = false;
			try
			{
				var xmlhttp = new XMLHttpRequest();
				xmlhttp.open("GET", url, false);
			}
			catch (Exception)
			{
				document.body.innerHTML = Exception.toString();
				
				var ie = (typeof window.ActiveXObject != 'undefined');
	
				if (ie)
				{
					xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
					xmlDoc.async = false;
					while(xmlDoc.readyState != 4) {};
					xmlDoc.load(url);
					xmlloaded = true;
				}
				else
				{
					xmlDoc = document.implementation.createDocument("", "", null);
					xmlDoc.load(url);
					xmlloaded = true;
				}
			}
	
			if (!xmlloaded)
			{

				xmlhttp.setRequestHeader('Content-Type', 'text/xml')
				xmlhttp.send("");
				xmlDoc = xmlhttp.responseXML;
				xmlloaded = true;
			}

			if( onComplete ) onComplete( xmlDoc );
		}
		
	}
